package cn.edu.eight.food.service;


import cn.edu.eight.food.model.Foods;
import cn.edu.eight.food.model.OfFood;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ofFoodService {
    //添加食物
    int insert(OfFood record);

    //查询所有食物
    List<Foods> foods(int hot, String foodName);

    //修改食物信息
    int updateFood(OfFood record);

    //删除食物信息
    int deleteFood(String foodId);

    //食品展示
    List<OfFood> foodList(int hot);

    //根据id查找食物
    OfFood findByIdFood(String foodId);
}
